# -*- coding: utf-8 -*-

"""
DateTime   : 2020/12/23 18:11
Author     : ZhangYafei
Description: 
"""
import requests
import os

res = requests.get(
    url="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4",
    headers={
        "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36"
    }
)

with open('1.mp4', 'wb') as f:
    f.write(res.content)